const initstatus:any = {
    a:[],
    b:123,
    c:1233,
}

const reducer = (state= initstatus,actions:any)=>{
    switch(actions.type){
        case 'add':
        return  {
            ...initstatus,
            b:state.b+1
        }
        break;
        case 'remove':
        return  {
            ...initstatus,
            b:state.b-1
        }
        break;
        default:
        return state;
    }
}


export default  reducer;
